﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="BankHistory.aspx.cs" Inherits="BankHistory" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="ModuleContent">
        <ul class="NavigationButtons">
            <li>
                <asp:LinkButton ID="lbAddNew" CssClass="navigation_button" Text="Add New" runat="server" OnClick="lbAddNew_Click"></asp:LinkButton>
            </li>
        </ul>
    </div>
    <asp:GridView ID="BankHistoryGirdView" CssClass="skineedgrid" runat="server" DataSourceID="BankHistoryDS" AutoGenerateColumns="false" Width="75%" DataKeyNames="RecordID"
        AllowPaging="true" AllowSorting="true" PageSize="10">
        <Columns>
            <asp:BoundField DataField="RecordID" HeaderText="RecordID" Visible="False" />
            <asp:BoundField DataField="ID" HeaderText="BankID" Visible="False" />
            <asp:BoundField DataField="Name" HeaderText="Title" SortExpression="Name" />
            <asp:BoundField DataField="NameGeo" HeaderText="Title(Geo)" SortExpression="NameGeo" />
            <asp:BoundField DataField="BeginDate" HeaderText="Begin Date" DataFormatString="{0 : dd/MM/yyyy}" SortExpression="BeginDate" />
            <asp:BoundField DataField="FinishDate" HeaderText="Finish Date" DataFormatString="{0 : dd/MM/yyyy}" />
            <asp:TemplateField>
                <ItemTemplate>
                    <a href="bankedit.aspx?id=<%#Eval("RecordID") %>&m=liBanks">Edit</a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>

    <asp:ObjectDataSource ID="BankHistoryDS" runat="server" SortParameterName="sortBy" SelectMethod="GetBanks" TypeName="DAL.DBManagers.BanksManager">
        <SelectParameters>
            <asp:QueryStringParameter Name="BankID" QueryStringField="id" DbType="Guid" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>

